<!DOCTYPE html>
<html>
<head>
    %{--<meta name="layout" content="login_register_custorm">--}%
    <g:set var="entityName" value="${message(code: 'users.label', default: 'Users')}"/>
    <title>用户注册</title>
    <style>
    * {
        margin: 0px;
        padding: 0px;
    }

    body {
        font-size: 14px;
        font-family: "微软雅黑";
    }
    </style>
    <script type="text/javascript" src="${createLinkTo(dir: 'js', file: 'jquery-2.1.3.min.js')}"></script>
</head>

<body>
<nav class="navbar navbar-default  navbar-shrink">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand page-scroll" href="#page-top">GDepot</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li class="hidden">
                    <a href="#page-top"></a>
                </li>
                <li><a href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
                <li>
                    <g:link class="page-scroll" controller="user" action="register">Sign In</g:link>
                </li>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>

<div id="create-users" class="content scaffold-create" role="main">

    <g:hasErrors beans="${[usersInstance, cmd]}">
        <ul class="errors" role="alert">
            <g:eachError beans="${[usersInstance, cmd]}" var="error">
                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                        error="${error}"/></li>

            </g:eachError>
        </ul>
    </g:hasErrors>
    <g:render template="form1"/>

</div>
</body>
</html>
